data = [
    {
        title: '文件(F)',
        menuItems: [
            {
                title: '新建(N)',
                shortcut: 'Ctrl+N',
                enabled: true,
                checked: false,
                handler: () => { }
            }, {
                title: '新窗口(W)',
                shortcut: 'Ctrl+Shift+N',
                enabled: true,
                checked: false,
                handler: () => { }
            }, {
                title: '打开(O)...',
                shortcut: 'Ctrl+O',
                enabled: true,
                checked: false,
                handler: () => { }
            }, {
                title: '保存(S)',
                shortcut: 'Ctrl+S',
                enabled: true,
                checked: false,
                handler: () => { }
            }, {
                title: '另存为(A)...',
                shortcut: '',
                enabled: true,
                checked: false,
                handler: () => { }
            }, {
                title: 'hr',
                shortcut: '',
                enabled: true,
                checked: false,
                handler: () => { }
            }, {
                title: '页面设置(U)...',
                shortcut: '',
                enabled: true,
                checked: false,
                handler: () => { }
            }, {
                title: '打印(P)...',
                shortcut: 'Ctrl+P',
                enabled: true,
                checked: false,
                handler: () => { }
            }, {
                title: 'hr',
                shortcut: '',
                enabled: true,
                checked: false,
                handler: () => { }
            }, {
                title: '退出(X)',
                shortcut: '',
                enabled: true,
                checked: false,
                handler: () => { }
            }
        ]
    }, {
        title: '编辑(E)',
        menuItems: [
            {
                title: '撤销(U)',
                shortcut: 'Ctrl+Z',
                enabled: false,
                checked: false,
                handler: () => { }
            }, {
                title: '剪切(T)',
                shortcut: 'Ctrl+X',
                enabled: true,
                checked: false,
                handler: () => { }
            }, {
                title: '复制(C)',
                shortcut: 'Ctrl+C',
                enabled: false,
                checked: false,
                handler: () => { }
            }, {
                title: '粘贴(P)',
                shortcut: 'Ctrl+V',
                enabled: false,
                checked: false,
                handler: () => { }
            }, {
                title: '删除(L)',
                shortcut: 'Del',
                enabled: false,
                checked: false,
                handler: () => { }
            }, {
                title: 'hr',
                shortcut: '',
                enabled: true,
                checked: false,
                handler: () => { }
            }, {
                title: '使用 Bing 搜索...',
                shortcut: 'Ctrl+E',
                enabled: true,
                checked: false,
                handler: () => { }
            }, {
                title: '查找(F)...',
                shortcut: 'Ctrl+F',
                enabled: false,
                checked: false,
                handler: () => { }
            }, {
                title: '查找下一个(N)',
                shortcut: 'F3',
                enabled: false,
                checked: false,
                handler: () => { }
            }, {
                title: '查找上一个(V)',
                shortcut: 'Shift+F3',
                enabled: true,
                checked: false,
                handler: () => { }
            }, {
                title: '替换(R)...',
                shortcut: 'Ctrl+H',
                enabled: true,
                checked: false,
                handler: () => { }
            }, {
                title: '转到(G)...',
                shortcut: 'Ctrl+G',
                enabled: true,
                checked: false,
                handler: () => { }
            }, {
                title: 'hr',
                shortcut: '',
                enabled: true,
                checked: false,
                handler: () => { }
            }, {
                title: '全选(A)',
                shortcut: 'Ctrl+A',
                enabled: true,
                checked: false,
                handler: () => { }
            }, {
                title: '时间/日期(D)',
                shortcut: 'F5',
                enabled: true,
                checked: false,
                handler: () => { }
            },
        ]
    }, {
        title: '格式(O)',
        menuItems: [
            {
                title: '自动换行(W)',
                shortcut: '',
                enabled: true,
                checked: true,
                handler: () => { }
            }, {
                title: '字体(F)...',
                shortcut: '',
                enabled: true,
                checked: false,
                handler: () => {
                    let dlgFont = new DlgFont()
                    dlgFont.show({
                        container: 'body',
                        family: '微软雅黑',
                        style: '常规',
                        size: '16',
                        okHandler: function (e) {
                            console.log(e);
                        }
                    });
                }
            }
        ]
    }, {
        title: '查看(V)',
        menuItems: [
            {
                title: '缩放(Z)',
                checked: false,
                enabled: true,
                handler: () => { }
            }, {
                title: '状态栏(S)',
                checked: true,
                enabled: true,
                handler: () => { }
            }
        ]
    }, {
        title: '帮助(H)',
        menuItems: [
            {
                title: '查看帮助(H)',
                checked: false,
                enabled: true,
                handler: () => { }
            }, {
                title: '发送反馈(F)',
                checked: false,
                enabled: true,
                handler: () => { }
            }, {
                title: 'hr',
                shortcut: '',
                enabled: true,
                checked: false,
                handler: () => { }
            }, {
                title: '关于记事本(A)',
                checked: false,
                enabled: true,
                handler: () => { }
            }
        ]

    }

]